//
//  AlignCollectionViewCell.m
//  ObjectiveCTools
//
//  Created by aidong on 2021/10/28.
//  Copyright © 2021 姬友大人. All rights reserved.
//

#import "AlignCollectionViewCell.h"

@interface AlignCollectionViewCell()
@property (nonatomic,strong) UILabel *label;
@end

@implementation AlignCollectionViewCell
- (id)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        self.contentView.backgroundColor = UIColor.yellowColor;
        self.label = [[UILabel alloc] initWithFrame:self.bounds];
        self.label.font = [UIFont systemFontOfSize:14];
        self.label.textAlignment = NSTextAlignmentCenter;
        self.label.textColor = UIColor.blackColor;
        [self.contentView addSubview:self.label];
    }
    return self;
}

- (void)setContent:(NSString *)aContent {
    self.label.frame = self.bounds;
    self.label.text = aContent;
}
@end
